﻿/*
 * Erstellt mit SharpDevelop.
 * Benutzer: Kai Patrick
 * Datum: 26.04.2008
 * Zeit: 18:41
 * 
 * Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
 */

using System;
using System.Collections.Generic;

namespace Gamadus.Core.Resources
{
	/// <summary>
	/// Description of ActionPrototype.
	/// </summary>
	public class ActionPrototype
	{
		string m_name;
		public string Name
		{
			get
			{
				return m_name;
			}
		}
		string m_group;
		public string Group
		{
			get
			{
				return m_group;
			}
		}
		string m_descriptionPrototype;
		public string DescriptionPrototype
		{
			get
			{
				return m_descriptionPrototype;
			}
		}
		
		Dictionary<string, ActionParamPrototype> m_paramTypes;
		public IDictionary<string, ActionParamPrototype> ParamTypes
		{
			get
			{
				return m_paramTypes;
			}
		}
		
		string m_imageKey;
		public string ImageKey
		{
			get
			{
				return m_imageKey;
			}
		}
		
		public ActionPrototype(string name, string group, string imageKey, string description, Dictionary<string,ActionParamPrototype> paramTypes)
		{
			m_name = name;
			m_group = group;
			m_descriptionPrototype = description;
			m_imageKey = imageKey;
			m_paramTypes = paramTypes;
		}
		
//		public void ShowEditForm(Action action)
//		{
//			if(this.Name == "Execute Code")
//			{
//				CodeEditor editor = new CodeEditor(ResourceMgr.Instance.MainForm,action);
//				ResourceMgr.Instance.editWindows.Add(editor);
//				editor.Show();
//			}
//			else
//			{
//				//TODO: add action parameter controls to form
//				Form form = new Form();
//				form.MinimizeBox = false;
//				form.MaximizeBox = false;
//				form.ShowInTaskbar = false;
//				form.ShowIcon = false;
//				form.ShowDialog();
//			}
//		}
	}
}
